#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :2.0.3 创建类来使用多线程demo.py
# @Time      :2020/7/13 12:10
# @Author    :亮亮
# @说明       :运用创建类来调用多线程
# @总结       :
import time
import threading


class MyThread(threading.Thread):
    def run(self):
        for i in range(5):
            print(i)
            time.sleep(1)


if __name__ == '__main__':
    t_1 = MyThread()
    t_2 = MyThread()
    t_1.start()
    t_2.start()
